package com.authine.cloudpivot.ext.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wangning
 */


@Getter
@AllArgsConstructor
public enum InvoiceStatusEnum {

    INVOICE_NOT(0,"未开票"),
    INVOICE_YES(1,"已开票");

    private int code;

    private String desc;


    public static boolean checkInvoiceStatus(Integer code){
      if (InvoiceStatusEnum.INVOICE_YES.getCode()==code){
            return true;
      }
      return false;
    }
}
